package com.social.action;

import java.util.List;
import com.base.dialect.PaginationSupport;
import com.base.dao.model.Ret;
import com.base.dao.model.Grid;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.apache.commons.lang.StringUtils;
import com.base.util.JSONUtils;
import com.base.web.annotation.LoginFilter;
import org.springframework.beans.factory.annotation.Autowired;
import com.base.action.CoreController;
import com.social.dao.model.UserContact;
import com.social.dao.model.UserContactExample;
import com.social.service.UserContactService;

/**
@author sun
*/
@RequestMapping("userContact")
@Controller
@LoginFilter
public class UserContactController extends CoreController{

    @Autowired
    private UserContactService userContactService;

    @RequestMapping("/list")
	@ResponseBody
    public String list(Integer page, Integer rows){
    	PaginationSupport.byPage(page, rows);
    	UserContactExample example = new UserContactExample();

    	List<UserContact> list = userContactService.selectByExample(example);
      	return page(list);
    }

}